package com.yuan.farmerwork.ynblog.utils.constants;

import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;

/**
 * 普通常量.
 *
 * @author yjs
 * @date 2021/1/8 14:58
 */
public final class CommConstants {

    /**
     * 重定向错误地址.
     */
    public static final String ERROR_ADDRESS = "redirect:/haserror";

    /**
     * 下载/上传文件路径.
     */
    public static final String URL_UPLOAD = "/upload/**";

    /**
     * 文件路径.
     */
    public static final String RELATIVE_FILE = "file:";

    /**
     * 纯数字正则.
     */
    public static final Pattern NUMBER_PATTERN = Pattern.compile("[0-9]*");

    /**
     * sql字段: tag_code.
     */
    public static final String MYBATIS_SQL_FIELD_TAG_CODE = "tag_code";

    /**
     * sql字段: serics_code.
     */
    public static final String MYBATIS_SQL_FIELD_SERICS_CODE = "serics_code";

    /**
     * sql字段: classify_code.
     */
    public static final String MYBATIS_SQL_FIELD_CLASSIFY_CODE = "classify_code";

    /**
     * sql字段: blog_id.
     */
    public static final String MYBATIS_SQL_FIELD_BLOG_ID = "blog_id";

    /**
     * sql字段: title.
     */
    public static final String MYBATIS_SQL_FIELD_TITLE = "title";
    /**
     * sql字段: is_delelte.
     */
    public static final String MYBATIS_SQL_FIELD_IS_DELELTE = "is_delelte";

    /**
     * sql: limit 1.
     */
    public static final String MYBATIS_SQL_LIMIT_1 = "limit 1";
    /**
     * 字典: 标签
     */
    public static final String ENUM_TAGE = "tags";
    /**
     * 字典: 系列
     */
    public static final String ENUM_SECRISC = "secrisc";
    /**
     * 字典: 分类
     */
    public static final String ENUM_CLASSIFY = "classify";
    /**
     * 字典: 项目
     */
    public static final String ENUM_DOC = "doc";

    /**
     * 颜色参数list
     */
    public static final List<String> COLO_LIST = Arrays.asList("Cyan", "DarkBlue", "DarkCyan", "DarkGoldenRod", "DarkGray"
            , "DarkGreen", "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "Darkorange", "DarkOrchid", "DarkRed"
            , "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkTurquoise", "DarkViolet"
            , "DeepPink", "DeepSkyBlue", "DimGray", "DodgerBlue", "Feldspar", "FireBrick", "Linen", "Magenta", "Maroon"
            , "MediumAquaMarine", "MediumBlue", "MediumOrchid", "MediumPurple", "MediumSeaGreen", "MediumSlateBlue"
            , "MediumSpringGreen", "MediumTurquoise", "MediumVioletRed", "MidnightBlue");

    /**
     * 页面样式默认类型
     */
    public static final String PAGE_STYLE_TYPE = " -current";


    /**
     * 逗号
     */
    public static final String SYMBOL_COMMA = ",";

    /**
     * 连接号
     */
    public static final String SYMBOL_CONNECIVE = "-";
}
